package com.csap.framework.oauth2.security.filter;

import com.csap.framework.oauth2.security.type.SecurityCondition;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpMethod;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Author ycf
 * @Date 2021/8/23 10:25 下午
 * @Version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FilterProperties {
    /**
     * 映射URL策略名称
     */
    private Map<HttpMethod, Set<String>> mapping;
    /**
     * 映射URL策略名称
     */
    private Map<HttpMethod, Set<String>> exclude;
    /**
     * 条件
     */
    private SecurityCondition condition = SecurityCondition.AND;
    /**
     * 权限列表
     */
    private Set<String> permissions;
}
